import request from '@/utils/request'
// 更改头像

export const changeUserPhoto = (formdata) => request({
  url: '/v1_0/user/photo',
  method: 'patch',
  data: {
    formdata
  }
})

// 更改用户信息

export const updateUserInfo = (name = null, birthday = null) => request({
  url: '/v1_0/user/profile',
  method: 'patch',
  data: {
    name,
    birthday
  }
})
